package datatypes;

import java.util.Arrays;
import java.util.Vector;

public class ScenarioActionDescription {
//Variables
	//Name of the Scenario-Action (JOIN or something like this)
	private String name = "none";
	//espacially if it is an node or an edge Action
	private String type = "none";
	//on which layer the action should executed
	private String layer = "none";
	//name of node or edge affected by the action
	private Vector<String> objects = null;;
	
	
//Methods
	public ScenarioActionDescription(String ActionName, String ActionType, String ActionLayer,String affectedObject){
		this.objects = new Vector<String>(Arrays.asList(affectedObject.split(",")));
		this.name = ActionName;
		this.type = ActionType;
		this.layer = ActionLayer;
	}
	
	public String getUniqueName(){
		return name + " " + type + " " + layer;
	}
	
	public String getLayer (){
		return this.layer;
	}
	
	public String getType (){
		return this.type;
	}
	
	public String getActionName () {
		return this.name;
	}
	
	public Vector<String> getObjects (){
		if (objects == null){
			return new Vector<String>();
		}
		return this.objects;
	}
}
